﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;

/// <summary>
/// DirectoryList 的摘要说明
/// </summary>
public class DirectoryList
{
    /// <summary>
    /// 编号
    /// </summary>
    private int _ID;
    public int ID
    {
        get { return _ID; }
        set { _ID = value; }
    }

    /// <summary>
    /// 名称
    /// </summary>
    private string _Name;
    public string Name
    {
        get { return _Name; }
        set { _Name = value; }
    }

    /// <summary>
    /// 路径
    /// </summary>
    private string _Path;
    public string Path
    {
        get { return _Path; }
        set { _Path = value; }
    }

    /// <summary>
    /// 父文件夹编号
    /// </summary>
    private int _ParentID;
    public int ParentID
    {
        get { return _ParentID; }
        set { _ParentID = value; }
    }

    /// <summary>
    /// 目录列表
    /// </summary>
    private IList<DirectoryIntro1> _DirList = new List<DirectoryIntro1>();
    public IList<DirectoryIntro1> DirList
    {
        get { return _DirList; }
    }
    public void DirListAdd(DirectoryIntro1 dir)
    {
        this._DirList.Add(dir);
    }


    /// <summary>
    /// 文件列表
    /// </summary>
    private IList<FileIntro1> _FileList = new List<FileIntro1>();
    public IList<FileIntro1> FileList
    {
        get { return _FileList; }
    }
    public void FileListAdd(FileIntro1 file)
    {
        this._FileList.Add(file);
    }
}
